<?php

namespace app\model;

use support\Model;

class CityModel extends Model
{
    /**
     * 关联表名
     * @var string
     */
    protected $table = 'city';

    /**
     * 主键
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * 关闭自动时间戳
     * @var bool
     */
    public $timestamps = false;

    /**
     * 可批量赋值字段
     * @var array
     */
    protected $fillable = [
        'name',
        'code',
        'status',
        'image',
        'created_at',
        'updated_at',
        'deleted_at'
    ];

    /**
     * 隐藏字段
     * @var array
     */
    protected $hidden = [
    ];

    protected $guarded = [];
} 